package br.empresa.sistema.dominio;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.jboss.seam.annotations.Name;


@Entity
@Table(name="TELEFONE_TIPO")
@Name("telefoneTipo")
/*@AttributeOverrides({
    @AttributeOverride(name="descricao", column=@Column(name = "DESCRICAO", nullable = false))
})*/
public class TelefoneTipo extends Dominio<Long> {
	
	@Id
	@Column(name = "CODIGO", nullable = false)
	private Long id;
	
	@Column(name = "DESCRICAO")
	private String descricao;
	
	private static final long serialVersionUID = 1L;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public String getDescricao() {
		return descricao;
	}

	@Override
	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

}
